home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Tool Chest / Interfaces / Universal Interfaces 2.0a3 / Universal AIncludes / MacTCP.a < prev    next >
Encoding:
Text File  |  1994-11-11  |  14.0 KB  |  617 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        MacTCP.a
  3. ;
  4. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  5. ;                All rights reserved.
  6. ;
  7. ;    Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.  
  17.     IF &TYPE('__MACTCP__') = 'UNDEFINED' THEN
  18. __MACTCP__ SET 1
  19.  
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. ;        include 'ConditionalMacros.a'                                ;
  25.  
  26.     IF &TYPE('__APPLETALK__') = 'UNDEFINED' THEN
  27.     include 'AppleTalk.a'
  28.     ENDIF
  29. ;        include 'OSUtils.a'                                        ;
  30. ;            include 'MixedMode.a'                                    ;
  31. ;            include 'Memory.a'                                        ;
  32.  
  33. inProgress                        EQU        1                    ; I/O in progress 
  34. ipBadLapErr                        EQU        -23000                ; bad network configuration 
  35. ipBadCnfgErr                    EQU        -23001                ; bad IP configuration error 
  36. ipNoCnfgErr                        EQU        -23002                ; missing IP or LAP configuration error 
  37. ipLoadErr                        EQU        -23003                ; error in MacTCP load 
  38. ipBadAddr                        EQU        -23004                ; error in getting address 
  39. connectionClosing                EQU        -23005                ; connection is closing 
  40. invalidLength                    EQU        -23006
  41. connectionExists                EQU        -23007                ; request conflicts with existing connection 
  42. connectionDoesntExist            EQU        -23008                ; connection does not exist 
  43. insufficientResources            EQU        -23009                ; insufficient resources to perform request 
  44. invalidStreamPtr                EQU        -23010
  45. streamAlreadyOpen                EQU        -23011
  46. connectionTerminated            EQU        -23012
  47. invalidBufPtr                    EQU        -23013
  48. invalidRDS                        EQU        -23014
  49. invalidWDS                        EQU        -23014
  50. openFailed                        EQU        -23015
  51. commandTimeout                    EQU        -23016
  52. duplicateSocket                    EQU        -23017
  53.  
  54. ; Error codes from internal IP functions 
  55. ipDontFragErr                    EQU        -23032                ; Packet too large to send w/o fragmenting 
  56. ipDestDeadErr                    EQU        -23033                ; destination not responding 
  57. icmpEchoTimeoutErr                EQU        -23035                ; ICMP echo timed-out 
  58. ipNoFragMemErr                    EQU        -23036                ; no memory to send fragmented pkt 
  59. ipRouteErr                        EQU        -23037                ; can't route packet off-net 
  60. nameSyntaxErr                    EQU        -23041
  61. cacheFault                        EQU        -23042
  62. noResultProc                    EQU        -23043
  63. noNameServer                    EQU        -23044
  64. authNameErr                        EQU        -23045
  65. noAnsErr                        EQU        -23046
  66. dnrErr                            EQU        -23047
  67. outOfMemory                        EQU        -23048
  68.  
  69. BYTES_16WORD                    EQU        2                    ; bytes per = 16, bit ip word 
  70. BYTES_32WORD                    EQU        4                    ; bytes per = 32, bit ip word 
  71. BYTES_64WORD                    EQU        8                    ; bytes per = 64, bit ip word 
  72.  
  73. ip_addrbytes             RECORD    0
  74. VariantLevel0Begin        EQU    *
  75. addr                     ds.l    1
  76.                         ORG        VariantLevel0Begin
  77. bytes                     ds.b    4
  78. sizeof                     EQU    4
  79.                         ENDR
  80.  
  81. wdsEntry                 RECORD    0
  82. length                     ds.w    1                                    ; length of buffer 
  83. ptr                         ds.l    1                                    ; pointer to buffer 
  84. sizeof                     EQU    6
  85.                         ENDR
  86.  
  87. rdsEntry                 RECORD    0
  88. length                     ds.w    1                                    ; length of buffer 
  89. ptr                         ds.l    1                                    ; pointer to buffer 
  90. sizeof                     EQU    6
  91.                         ENDR
  92.  
  93.  
  94. netUnreach                        EQU        0
  95. hostUnreach                        EQU        1
  96. protocolUnreach                    EQU        2
  97. portUnreach                        EQU        3
  98. fragReqd                        EQU        4
  99. sourceRouteFailed                EQU        5
  100. timeExceeded                    EQU        6
  101. parmProblem                        EQU        7
  102. missingOption                    EQU        8
  103.  
  104. ICMPReport                 RECORD    0
  105. streamPtr                 ds.l    1
  106. localHost                 ds.l    1
  107. localPort                 ds.w    1
  108. remoteHost                 ds.l    1
  109. remotePort                 ds.w    1
  110. reportType                 ds.w    1
  111. optionalAddlInfo         ds.w    1
  112. optionalAddlInfoPtr         ds.l    1
  113. sizeof                     EQU    24
  114.                         ENDR
  115.  
  116.  
  117. NUM_ALT_ADDRS                    EQU        4
  118.  
  119. hostInfo                 RECORD    0
  120. rtnCode                     ds.l    1
  121. cname                     ds.b    255
  122. filler                     ds.b    1                                    ; Filler for proper byte alignment     
  123. addr                     ds.l    1
  124. sizeof                     EQU    264
  125.                         ENDR
  126.  
  127.  
  128. kA                                EQU        1
  129. kNS                                EQU        2
  130. kCNAME                            EQU        5
  131. kHINFO                            EQU        13
  132. kMX                                EQU        15
  133.  
  134. HInfoRec                 RECORD    0
  135. cpuType                     ds.b    30
  136. osType                     ds.b    30
  137. sizeof                     EQU    60
  138.                         ENDR
  139.  
  140. MXRec                     RECORD    0
  141. preference                 ds.w    1
  142. exchange                 ds.b    255
  143. sizeof                     EQU    258
  144.                         ENDR
  145.  
  146. returnRec                 RECORD    0
  147. rtnCode                     ds.l    1
  148. cname                     ds.b    255
  149. filler                     ds.b    1                                    ; Filler for proper byte alignment     
  150. VariantLevel0Begin        EQU    *
  151. addr                     ds.l    1
  152.                         ORG        VariantLevel0Begin
  153. hinfo                     ds        HInfoRec
  154.                         ORG        VariantLevel0Begin
  155. mx                         ds        MXRec
  156. sizeof                     EQU    518
  157.                         ENDR
  158.  
  159. cacheEntryRecord         RECORD    0
  160. cname                     ds.l    1
  161. ctype                     ds.w    1
  162. cacheClass                 ds.w    1
  163. ttl                         ds.l    1
  164. VariantLevel0Begin        EQU    *
  165. name                     ds.l    1
  166.                         ORG        VariantLevel0Begin
  167. addr                     ds.l    1
  168. sizeof                     EQU    16
  169.                         ENDR
  170.  
  171. ; csCode to get our IP address 
  172.  
  173. ipctlGetAddr                    EQU        15
  174.  
  175. GetAddrParamBlock         RECORD    0
  176. qLink                     ds.l    1
  177. qType                     ds.w    1
  178. ioTrap                     ds.w    1
  179. ioCmdAddr                 ds.l    1
  180. ioCompletion             ds.l    1
  181. ioResult                 ds.w    1
  182. ioNamePtr                 ds.l    1
  183. ioVRefNum                 ds.w    1
  184. ioCRefNum                 ds.w    1
  185. csCode                     ds.w    1                                    ; standard I/O header 
  186. ourAddress                 ds.l    1                                    ; our IP address 
  187. ourNetMask                 ds.l    1                                    ; our IP net mask 
  188. sizeof                     EQU    36
  189.                         ENDR
  190.  
  191. ; control codes 
  192.  
  193. ipctlEchoICMP                    EQU        17                    ; send icmp echo 
  194. ipctlLAPStats                    EQU        19                    ; get lap stats 
  195.  
  196. ICMPParamBlock             RECORD    0
  197. qLink                     ds.l    1
  198. qType                     ds.w    1
  199. ioTrap                     ds.w    1
  200. ioCmdAddr                 ds.l    1
  201. ioCompletion             ds.l    1
  202. ioResult                 ds.w    1
  203. ioNamePtr                 ds.l    1
  204. ioVRefNum                 ds.w    1
  205. ioCRefNum                 ds.w    1
  206. csCode                     ds.w    1                                    ; standard I/O header 
  207. params                     ds.w    11
  208. echoRequestOut             ds.l    1                                    ; time in ticks of when the echo request went out 
  209. echoReplyIn                 ds.l    1                                    ; time in ticks of when the reply was received 
  210. echoedData                 ds        rdsEntry                            ; data received in responce 
  211. options                     ds.l    1
  212. userDataPtr                 ds.l    1
  213.  
  214. sizeof                     EQU    72
  215.                         ENDR
  216.  
  217.  
  218. NBP_TABLE_SIZE                    EQU        20                    ; number of NBP table entries 
  219. NBP_MAX_NAME_SIZE                EQU        16 + 10 + 2
  220.  
  221. nbp_entry                 RECORD    0
  222. ip_address                 ds.l    1                                    ; IP address 
  223. at_address                 ds        AddrBlock                            ; matching AppleTalk address 
  224. gateway                     ds.b    1                                    ; TRUE if entry for a gateway 
  225. valid                     ds.b    1                                    ; TRUE if LAP address is valid 
  226. probing                     ds.b    1                                    ; TRUE if NBP lookup pending 
  227. afiller                     ds.b    1                                    ; Filler for proper byte alignment     
  228. age                         ds.l    1                                    ; ticks since cache entry verified 
  229. access                     ds.l    1                                    ; ticks since last access 
  230. filler                     ds.b    116                                ; for internal use only !!! 
  231. sizeof                     EQU    136
  232.                         ENDR
  233.  
  234. ; number of ARP table entries 
  235.  
  236. ARP_TABLE_SIZE                    EQU        20
  237.  
  238. Enet_addr                 RECORD    0
  239. en_hi                     ds.w    1
  240. en_lo                     ds.l    1
  241. sizeof                     EQU    6
  242.                         ENDR
  243.  
  244. arp_entry                 RECORD    0
  245. age                         ds.w    1                                    ; cache aging field 
  246. protocol                 ds.w    1                                    ; Protocol type 
  247. ip_address                 ds.l    1                                    ; IP address 
  248. en_address                 ds        Enet_addr                            ; matching Ethernet address 
  249. sizeof                     EQU    14
  250.                         ENDR
  251.  
  252. ; Command codes 
  253.  
  254. TCPCreate                        EQU        30
  255. TCPPassiveOpen                    EQU        31
  256. TCPActiveOpen                    EQU        32
  257. TCPSend                            EQU        34
  258. TCPNoCopyRcv                    EQU        35
  259. TCPRcvBfrReturn                    EQU        36
  260. TCPRcv                            EQU        37
  261. TCPClose                        EQU        38
  262. TCPAbort                        EQU        39
  263. TCPStatus                        EQU        40
  264. TCPExtendedStat                    EQU        41
  265. TCPRelease                        EQU        42
  266. TCPGlobalInfo                    EQU        43
  267. TCPCtlMax                        EQU        49
  268.  
  269. IPParamBlock             RECORD    0
  270. qLink                     ds.l    1
  271. qType                     ds.w    1
  272. ioTrap                     ds.w    1
  273. ioCmdAddr                 ds.l    1
  274. ioCompletion             ds.l    1
  275. ioResult                 ds.w    1
  276. ioNamePtr                 ds.l    1
  277. ioVRefNum                 ds.w    1
  278. ioCRefNum                 ds.w    1
  279. csCode                     ds.w    1                                    ; standard I/O header 
  280. VariantLevel0Begin        EQU    *
  281. dest                     ds.l    1                                    ; echo to IP address 
  282. data                     ds        wdsEntry
  283. timeout                     ds.w    1
  284. options                     ds.l    1
  285. optLength                 ds.w    1
  286. icmpCompletion             ds.l    1
  287. userDataPtr                 ds.l    1
  288.  
  289.                         ORG        VariantLevel0Begin
  290. lapStatsPtr                 ds.l    1
  291.  
  292. sizeof                     EQU    54
  293.                         ENDR
  294.  
  295. AddressXlation             RECORD    0
  296. VariantLevel0Begin        EQU    *
  297. arp_table                 ds.l    1
  298.                         ORG        VariantLevel0Begin
  299. nbp_table                 ds.l    1
  300. sizeof                     EQU    4
  301.                         ENDR
  302.  
  303. LAPStats                 RECORD    0
  304. ifType                     ds.w    1
  305. ifString                 ds.l    1
  306. ifMaxMTU                 ds.w    1
  307. ifSpeed                     ds.l    1
  308. ifPhyAddrLength             ds.w    1
  309. ifPhysicalAddress         ds.l    1
  310. AddrXlation                 ds.l    1
  311. slotNumber                 ds.w    1
  312. sizeof                     EQU    24
  313.                         ENDR
  314.  
  315.  
  316. TCPClosing                        EQU        1
  317. TCPULPTimeout                    EQU        2
  318. TCPTerminate                    EQU        3
  319. TCPDataArrival                    EQU        4
  320. TCPUrgent                        EQU        5
  321. TCPICMPReceived                    EQU        6
  322.  
  323. TCPRemoteAbort                    EQU        2
  324. TCPNetworkFailure                EQU        3
  325. TCPSecPrecMismatch                EQU        4
  326. TCPULPTimeoutTerminate            EQU        5
  327. TCPULPAbort                        EQU        6
  328. TCPULPClose                        EQU        7
  329. TCPServiceError                    EQU        8
  330.  
  331. ; ValidityFlags 
  332. timeoutValue                    EQU        $80
  333. timeoutAction                    EQU        $40
  334. typeOfService                    EQU        $20
  335. precedence                        EQU        $10
  336.  
  337. ; TOSFlags 
  338. lowDelay                        EQU        $01
  339. throughPut                        EQU        $02
  340. reliability                        EQU        $04
  341.  
  342. TCPCreatePB             RECORD    0
  343. rcvBuff                     ds.l    1
  344. rcvBuffLen                 ds.l    1
  345. notifyProc                 ds.l    1
  346. userDataPtr                 ds.l    1
  347. sizeof                     EQU    16
  348.                         ENDR
  349.  
  350. TCPOpenPB                 RECORD    0
  351. ulpTimeoutValue             ds.b    1
  352. ulpTimeoutAction         ds.b    1
  353. validityFlags             ds.b    1
  354. commandTimeoutValue         ds.b    1
  355. remoteHost                 ds.l    1
  356. remotePort                 ds.w    1
  357. localHost                 ds.l    1
  358. localPort                 ds.w    1
  359. tosFlags                 ds.b    1
  360. precedence                 ds.b    1
  361. dontFrag                 ds.b    1
  362. timeToLive                 ds.b    1
  363. security                 ds.b    1
  364. optionCnt                 ds.b    1
  365. options                     ds.b    40
  366. userDataPtr                 ds.l    1
  367. sizeof                     EQU    66
  368.                         ENDR
  369.  
  370. TCPSendPB                 RECORD    0
  371. ulpTimeoutValue             ds.b    1
  372. ulpTimeoutAction         ds.b    1
  373. validityFlags             ds.b    1
  374. filler                     ds.b    1                                    ; Filler for proper byte alignment     
  375. pushFlag                 ds.b    1
  376. urgentFlag                 ds.b    1
  377. wdsPtr                     ds.l    1
  378. sendFree                 ds.l    1
  379. sendLength                 ds.w    1
  380. userDataPtr                 ds.l    1
  381. sizeof                     EQU    20
  382.                         ENDR
  383.  
  384. ; for receive and return rcv buff calls 
  385. TCPReceivePB             RECORD    0
  386. commandTimeoutValue         ds.b    1
  387. filler                     ds.b    1
  388. markFlag                 ds.b    1
  389. urgentFlag                 ds.b    1
  390. rcvBuff                     ds.l    1
  391. rcvBuffLen                 ds.w    1
  392. rdsPtr                     ds.l    1
  393. rdsLength                 ds.w    1
  394. secondTimeStamp             ds.w    1
  395. userDataPtr                 ds.l    1
  396. sizeof                     EQU    22
  397.                         ENDR
  398.  
  399. TCPClosePB                 RECORD    0
  400. ulpTimeoutValue             ds.b    1
  401. ulpTimeoutAction         ds.b    1
  402. validityFlags             ds.b    1
  403. filler                     ds.b    1                                    ; Filler for proper byte alignment     
  404. userDataPtr                 ds.l    1
  405. sizeof                     EQU    8
  406.                         ENDR
  407.  
  408. HistoBucket             RECORD    0
  409. value                     ds.w    1
  410. counter                     ds.l    1
  411. sizeof                     EQU    6
  412.                         ENDR
  413.  
  414.  
  415. NumOfHistoBuckets                EQU        7
  416.  
  417. TCPConnectionStats         RECORD    0
  418. dataPktsRcvd             ds.l    1
  419. dataPktsSent             ds.l    1
  420. dataPktsResent             ds.l    1
  421. bytesRcvd                 ds.l    1
  422. bytesRcvdDup             ds.l    1
  423. bytesRcvdPastWindow         ds.l    1
  424. bytesSent                 ds.l    1
  425. bytesResent                 ds.l    1
  426. numHistoBuckets             ds.w    1
  427. sentSizeHisto             ds        HistoBucket
  428. lastRTT                     ds.w    1
  429. tmrSRTT                     ds.w    1
  430. rttVariance                 ds.w    1
  431. tmrRTO                     ds.w    1
  432. sendTries                 ds.b    1
  433. sourchQuenchRcvd         ds.b    1
  434. sizeof                     EQU    50
  435.                         ENDR
  436.  
  437. TCPStatusPB             RECORD    0
  438. ulpTimeoutValue             ds.b    1
  439. ulpTimeoutAction         ds.b    1
  440. unused                     ds.l    1
  441. remoteHost                 ds.l    1
  442. remotePort                 ds.w    1
  443. localHost                 ds.l    1
  444. localPort                 ds.w    1
  445. tosFlags                 ds.b    1
  446. precedence                 ds.b    1
  447. connectionState             ds.b    1
  448. filler                     ds.b    1                                    ; Filler for proper byte alignment     
  449. sendWindow                 ds.w    1
  450. rcvWindow                 ds.w    1
  451. amtUnackedData             ds.w    1
  452. amtUnreadData             ds.w    1
  453. securityLevelPtr         ds.l    1
  454. sendUnacked                 ds.l    1
  455. sendNext                 ds.l    1
  456. congestionWindow         ds.l    1
  457. rcvNext                     ds.l    1
  458. srtt                     ds.l    1
  459. lastRTT                     ds.l    1
  460. sendMaxSegSize             ds.l    1
  461. connStatPtr                 ds.l    1
  462. userDataPtr                 ds.l    1
  463. sizeof                     EQU    70
  464.                         ENDR
  465.  
  466. TCPAbortPB                 RECORD    0
  467. userDataPtr                 ds.l    1
  468. sizeof                     EQU    4
  469.                         ENDR
  470.  
  471. TCPParam                 RECORD    0
  472. tcpRtoA                     ds.l    1
  473. tcpRtoMin                 ds.l    1
  474. tcpRtoMax                 ds.l    1
  475. tcpMaxSegSize             ds.l    1
  476. tcpMaxConn                 ds.l    1
  477. tcpMaxWindow             ds.l    1
  478. sizeof                     EQU    24
  479.                         ENDR
  480.  
  481. TCPStats                 RECORD    0
  482. tcpConnAttempts             ds.l    1
  483. tcpConnOpened             ds.l    1
  484. tcpConnAccepted             ds.l    1
  485. tcpConnClosed             ds.l    1
  486. tcpConnAborted             ds.l    1
  487. tcpOctetsIn                 ds.l    1
  488. tcpOctetsOut             ds.l    1
  489. tcpOctetsInDup             ds.l    1
  490. tcpOctetsRetrans         ds.l    1
  491. tcpInputPkts             ds.l    1
  492. tcpOutputPkts             ds.l    1
  493. tcpDupPkts                 ds.l    1
  494. tcpRetransPkts             ds.l    1
  495. sizeof                     EQU    52
  496.                         ENDR
  497.  
  498. TCPGlobalInfoPB         RECORD    0
  499. tcpParamPtr                 ds.l    1
  500. tcpStatsPtr                 ds.l    1
  501. tcpCDBTable                 ds.l    1
  502. userDataPtr                 ds.l    1
  503. maxTCPConnections         ds.w    1
  504. sizeof                     EQU    18
  505.                         ENDR
  506.  
  507. TCPiopb                 RECORD    0
  508. fill12                     ds.b    12
  509. ioCompletion             ds.l    1
  510. ioResult                 ds.w    1
  511. ioNamePtr                 ds.l    1
  512. ioVRefNum                 ds.w    1
  513. ioCRefNum                 ds.w    1
  514. csCode                     ds.w    1
  515. tcpStream                 ds.l    1
  516. VariantLevel0Begin        EQU    *
  517. create                     ds        TCPCreatePB
  518.                         ORG        VariantLevel0Begin
  519. open                     ds        TCPOpenPB
  520.                         ORG        VariantLevel0Begin
  521. send                     ds        TCPSendPB
  522.                         ORG        VariantLevel0Begin
  523. receive                     ds        TCPReceivePB
  524.                         ORG        VariantLevel0Begin
  525. close                     ds        TCPClosePB
  526.                         ORG        VariantLevel0Begin
  527. abort                     ds        TCPAbortPB
  528.                         ORG        VariantLevel0Begin
  529. status                     ds        TCPStatusPB
  530.                         ORG        VariantLevel0Begin
  531. globalInfo                 ds        TCPGlobalInfoPB
  532. sizeof                     EQU    102
  533.                         ENDR
  534.  
  535.  
  536. UDPCreate                        EQU        20
  537. UDPRead                            EQU        21
  538. UDPBfrReturn                    EQU        22
  539. UDPWrite                        EQU        23
  540. UDPRelease                        EQU        24
  541. UDPMaxMTUSize                    EQU        25
  542. UDPStatus                        EQU        26
  543. UDPMultiCreate                    EQU        27
  544. UDPMultiSend                    EQU        28
  545. UDPMultiRead                    EQU        29
  546. UDPCtlMax                        EQU        29
  547.  
  548. UDPDataArrival                    EQU        1
  549. UDPICMPReceived                    EQU        2
  550.  
  551. ; for create and release calls 
  552. UDPCreatePB             RECORD    0
  553. rcvBuff                     ds.l    1
  554. rcvBuffLen                 ds.l    1
  555. notifyProc                 ds.l    1
  556. localPort                 ds.w    1
  557. userDataPtr                 ds.l    1
  558. endingPort                 ds.w    1
  559. sizeof                     EQU    20
  560.                         ENDR
  561.  
  562. UDPSendPB                 RECORD    0
  563. reserved                 ds.w    1
  564. remoteHost                 ds.l    1
  565. remotePort                 ds.w    1
  566. wdsPtr                     ds.l    1
  567. checkSum                 ds.b    1
  568. filler                     ds.b    1                                    ; Filler for proper byte alignment     
  569. sendLength                 ds.w    1
  570. userDataPtr                 ds.l    1
  571. localPort                 ds.w    1
  572. sizeof                     EQU    22
  573.                         ENDR
  574.  
  575. ; for receive and buffer return calls 
  576. UDPReceivePB             RECORD    0
  577. timeOut                     ds.w    1
  578. remoteHost                 ds.l    1
  579. remotePort                 ds.w    1
  580. rcvBuff                     ds.l    1
  581. rcvBuffLen                 ds.w    1
  582. secondTimeStamp             ds.w    1
  583. userDataPtr                 ds.l    1
  584. destHost                 ds.l    1                                    ; only for use with multi rcv 
  585. destPort                 ds.w    1                                    ; only for use with multi rcv 
  586. sizeof                     EQU    26
  587.                         ENDR
  588.  
  589. UDPMTUPB                 RECORD    0
  590. mtuSize                     ds.w    1
  591. remoteHost                 ds.l    1
  592. userDataPtr                 ds.l    1
  593. sizeof                     EQU    10
  594.                         ENDR
  595.  
  596. UDPiopb                 RECORD    0
  597. fill12                     ds.b    12
  598. ioCompletion             ds.l    1
  599. ioResult                 ds.w    1
  600. ioNamePtr                 ds.l    1
  601. ioVRefNum                 ds.w    1
  602. ioCRefNum                 ds.w    1
  603. csCode                     ds.w    1
  604. udpStream                 ds.l    1
  605. VariantLevel0Begin        EQU    *
  606. create                     ds        UDPCreatePB
  607.                         ORG        VariantLevel0Begin
  608. send                     ds        UDPSendPB
  609.                         ORG        VariantLevel0Begin
  610. receive                     ds        UDPReceivePB
  611.                         ORG        VariantLevel0Begin
  612. mtu                         ds        UDPMTUPB
  613. sizeof                     EQU    58
  614.                         ENDR
  615.  
  616.     ENDIF ; __MACTCP__
  617.